package com.yeyks.util;

import com.google.common.base.Joiner;

import java.util.Arrays;
import java.util.List;

/**
 * @Author fuchangshuai
 * @date 2019/3/11 1:02 PM
 */
public class Joiners {
    public static final Joiner DOT = Joiner.on(".").skipNulls();
    public static final Joiner COMMA = Joiner.on(",").skipNulls();
    public static final Joiner SPACE = Joiner.on(" ").skipNulls();
    public static final Joiner COLON = Joiner.on(":").skipNulls();
    public static final Joiner ENTER = Joiner.on("\n").skipNulls();

    public Joiners() {
    }

    public static void main(String[] args) {
        List<Integer> integers = Arrays.asList(1, 2, 3, 4, 5, 6);
        String join = Joiners.COMMA.join(integers);
        System.out.println(join);
    }
}
